package com.excesys.exsecs.scada.service.impl;

import cn.hutool.core.lang.tree.Tree;
import cn.hutool.core.lang.tree.TreeNode;
import cn.hutool.core.lang.tree.TreeUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.excesys.exsecs.scada.entity.*;
import com.excesys.exsecs.scada.mapper.ScadaFolderAndLinkedMapper;
import com.excesys.exsecs.scada.mapper.ScadaFolderMapper;
import com.excesys.exsecs.scada.mapper.SysDictItemCopyMapper;
import com.excesys.exsecs.scada.service.ScadaFolderAndLinkedService;
import com.excesys.exsecs.scada.service.ScadaFolderService;
import com.excesys.exsecs.scada.service.ScadaPropertyService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
 * 文件夹_
 *
 * @author pig
 * @date 2024-06-25 09:18:13
 */
@Service
@RequiredArgsConstructor
public class ScadaFolderAndLinkedServiceImpl extends ServiceImpl<ScadaFolderAndLinkedMapper, ScadaFolderAndLinked> implements ScadaFolderAndLinkedService {

	@Override
	public void deleteFromParentId(Long parentId) {
		this.baseMapper.deleteFromParentId(parentId);
	}

	@Override
	public void updateById(String linkedId,Integer id) {
		this.baseMapper.updateById(linkedId,id);
	}
}